package com.example.recuitactivity.Builder;

import com.example.recuitactivity.Builder.RecruitInfoAbstractBuilder;
import com.example.recuitactivity.bean.RecuitInfo;
import com.example.recuitactivity.helper.TimeHelper;

public class RecruitInfoConcreteBuilder1 extends RecruitInfoAbstractBuilder {

    @Override
    public void buildItemId(long itemId) {
    }

    @Override
    public void buildUsername(String name) {
        recuitInfo.setRecuitName(name);
    }

    @Override
    public void buildCompany(String company) {
        recuitInfo.setEnterpriseName(company);
    }

    @Override
    public void buildSalary(String salary) {
        recuitInfo.setSalary(salary);
    }

    @Override
    public void buildEduBackground(String edubg) {
        recuitInfo.setEduRequest(edubg);
    }

    @Override
    public void buildScale(String scale) {
        recuitInfo.setScale(scale);
    }

    @Override
    public void buildLocation(String location) {
        recuitInfo.setLocation(location);
    }

    @Override
    public void buildDetail(String detail) {
        recuitInfo.setDetail(detail);
    }

    @Override
    public void buildUpdateTime() {
        recuitInfo.setUpdateTime(TimeHelper.getInstance().getCurrentTime());
    }

    public boolean isNeedId(){
        return false;
    }


    @Override
    public RecuitInfo getResult() {
        return recuitInfo;
    }
}
